<?php

namespace App\Exception;

use App\Constants\Code;

class ValidateException extends LogicException
{
    public $errors;

    public function __construct(array $errors)
    {
        $this->errors = $errors;
        parent::__construct( Code::VALIDATE_FAIL);
    }
}